package org.basic.sms.domain.vo;


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.basic.common.excel.annotation.ExcelDictFormat;
import org.basic.common.excel.convert.ExcelDictConvert;
import org.basic.sms.domain.SysSmsTemplate;

import java.io.Serial;
import java.io.Serializable;



/**
 * 邮件模板视图对象 sys_sms_template
 *
 * @author Shao Hua
 * @date 2023-07-20
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysSmsTemplate.class)
public class SysSmsTemplateVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 模板ID
     */
    @ExcelProperty(value = "模板ID")
    private Long id;

    /**
     * 模板名称
     */
    @ExcelProperty(value = "模板名称")
    private String name;

    /**
     * 模板编码
     */
    @ExcelProperty(value = "模板编码")
    private String code;

    /**
     * 模板类型（0 验证码 ，1 通知）
     */
    @ExcelProperty(value = "模板类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=,验=证码,，=1,通=知")
    private Long type;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String content;

    /**
     * 渠道ID
     */
    @ExcelProperty(value = "渠道ID")
    private Long channelId;

    /**
     * 状态（0 开启，1 未开启 ）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=,开=启，1,未=开启")
    private String status;


    private String channelName;


}
